package com.zhou.scaffolding.log.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

@Component
public class LogEventPublish {

    @Autowired
    private ApplicationEventPublisher applicationEventPublisher;

    public void publish(LogEvent logEvent){
        applicationEventPublisher.publishEvent(logEvent);
    }
}
